<template>
  <div>
    <el-carousel :interval="4000" type="card" height="250px">
      <el-carousel-item v-for="item in carousel" :key="item">
        <img :src="item" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import img1 from '@/assets/image/carousel/carousel1.png'
import img2 from '@/assets/image/carousel/carousel2.png'
import img3 from '@/assets/image/carousel/carousel3.png'
export default {
  data() {
    return {
      carousel: [img1, img2, img3]
    }
  }
}
</script>

<style lang="less" scoped>
img {
  width: 100%;
  height: 250px;
}
</style>
